package com.laijiale.service;

import com.laijiale.dto.CourseInsertDTO;
import com.laijiale.dto.CoursePageDTO;
import com.laijiale.dto.CourseUpdateDTO;
import com.laijiale.result.Result;
import com.mybatisflex.core.paginate.Page;
import com.mybatisflex.core.service.IService;
import com.laijiale.entity.Course;
import org.checkerframework.checker.units.qual.C;
import org.springframework.web.multipart.MultipartFile;
import vo.CourseSimpleListVO;

import java.util.List;

/**
 * 课程表 服务层。
 *
 * @author laijiale
 * @since 2024-12-22
 */
public interface CourseService extends IService<Course> {
    boolean insert(CourseInsertDTO dto);
    Course select(Long id);
    List<CourseSimpleListVO> simpleList();
    Page<Course> page(CoursePageDTO dto);
    boolean update(CourseUpdateDTO dto);
    boolean delete(Long id);
    boolean deleteBatch(List<Long> ids);
    Result<String> uploadSummary(MultipartFile summaryFile, Long id);
    Result<String> uploadCover(MultipartFile coverFile, Long id);
}
